package com.aaa.backsystem.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author gyc
 * @since 2020-07-25
 */
@TableName("tbl_staff")
public class Staff extends Model<Staff> {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 员工姓名
     */
    @TableField("staff_name")
    private String staffName;
    /**
     * 曾用名
     */
    private String chenName;
    /**
     * 加油站id
     */
    @TableField("petrol_station_id")
    private Integer petrolStationId;
    /**
     * 所属企业
     */
    @TableField("staff_comp")
    private String staffComp;
    /**
     * 公民身份证号码
     */
    @TableField("staff_card")
    private String staffCard;
    /**
     * 删除标志(0存在 1删除)
     */
    @TableField("del_flag")
    private String delFlag;
    /**
     * 性别（0男1女）
     */
    private Integer sex;
    /**
     * 出生日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;
    /**
     * 民族
     */
    private String nation;
    /**
     * 户籍地所属县区
     */
    private String domicile;
    /**
     * 户籍详细地址
     */
    @TableField("dom_address")
    private String domAddress;
    /**
     * 现居住地所属县区
     */
    @TableField("now_address")
    private String nowAddress;
    /**
     * 现居住地详址
     */
    @TableField("detailed_address")
    private String detailedAddress;
    /**
     * 文化程度
     */
    private String education;
    /**
     * 兵役状况
     */
    private String military;
    /**
     * 婚姻状况
     */
    private String marriage;
    /**
     * 籍贯
     */
    private String nativea;
    /**
     * 政治面貌
     */
    private String politics;
    /**
     * 身高
     */
    private Double height;
    /**
     * 血型
     */
    private String blood;
    /**
     *居住地所属派出所
     */
    private String police;
    /**
     * 审批状态(0：已审批，1：未审批)
     */
    private Integer status;

    /**
     * 加油站照片url
     */
    @TableField("pic")
    private String pic;

    public Integer getId() {
        return id;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getChenName() {
        return chenName;
    }

    public void setChenName(String chenName) {
        this.chenName = chenName;
    }

    public Integer getPetrolStationId() {
        return petrolStationId;
    }

    public void setPetrolStationId(Integer petrolStationId) {
        this.petrolStationId = petrolStationId;
    }

    public String getStaffComp() {
        return staffComp;
    }

    public void setStaffComp(String staffComp) {
        this.staffComp = staffComp;
    }

    public String getStaffCard() {
        return staffCard;
    }

    public void setStaffCard(String staffCard) {
        this.staffCard = staffCard;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getNation() {
        return nation;
    }

    public void setNation(String nation) {
        this.nation = nation;
    }

    public String getDomicile() {
        return domicile;
    }

    public void setDomicile(String domicile) {
        this.domicile = domicile;
    }

    public String getDomAddress() {
        return domAddress;
    }

    public void setDomAddress(String domAddress) {
        this.domAddress = domAddress;
    }

    public String getNowAddress() {
        return nowAddress;
    }

    public void setNowAddress(String nowAddress) {
        this.nowAddress = nowAddress;
    }

    public String getDetailedAddress() {
        return detailedAddress;
    }

    public void setDetailedAddress(String detailedAddress) {
        this.detailedAddress = detailedAddress;
    }

    public String getEducation() {
        return education;
    }

    public void setEducation(String education) {
        this.education = education;
    }

    public String getMilitary() {
        return military;
    }

    public void setMilitary(String military) {
        this.military = military;
    }

    public String getMarriage() {
        return marriage;
    }

    public void setMarriage(String marriage) {
        this.marriage = marriage;
    }

    public String getNativea() {
        return nativea;
    }

    public void setNativea(String nativea) {
        this.nativea = nativea;
    }

    public String getPolitics() {
        return politics;
    }

    public void setPolitics(String politics) {
        this.politics = politics;
    }

    public Double getHeight() {
        return height;
    }

    public void setHeight(Double height) {
        this.height = height;
    }

    public String getBlood() {
        return blood;
    }

    public void setBlood(String blood) {
        this.blood = blood;
    }

    public String getPolice() {
        return police;
    }

    public void setPolice(String police) {
        this.police = police;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Staff{" +
                "id=" + id +
                ", staffName='" + staffName + '\'' +
                ", chenName='" + chenName + '\'' +
                ", petrolStationId=" + petrolStationId +
                ", staffComp='" + staffComp + '\'' +
                ", staffCard='" + staffCard + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", sex=" + sex +
                ", date=" + date +
                ", nation='" + nation + '\'' +
                ", domicile='" + domicile + '\'' +
                ", domAddress='" + domAddress + '\'' +
                ", nowAddress='" + nowAddress + '\'' +
                ", detailedAddress='" + detailedAddress + '\'' +
                ", education='" + education + '\'' +
                ", military='" + military + '\'' +
                ", marriage='" + marriage + '\'' +
                ", nativea='" + nativea + '\'' +
                ", politics='" + politics + '\'' +
                ", height=" + height +
                ", blood='" + blood + '\'' +
                ", police='" + police + '\'' +
                ", status=" + status +
                ", pic='" + pic + '\'' +
                '}';
    }
}
